<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class UserBingshi extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'user_bingshi';

    protected $casts = [
        'jiwangshi' => 'json',
        'fuqin' => 'json',
        'qinqi' => 'json',
        'muqin' => 'json',
        'chusheng' => 'json',
        'quguang_dpt' => 'json',
    ];

    public function user(){
        return $this->hasOne(User::class, 'id', 'user_id');
    }
    
}
